package univer.oko.database.rmi.impl;

import java.util.Vector;

/**
 * @author Eduard Dudar
 *         Date: 21.11.2005
 *         Time: 22:04:30
 */
public class ContractTypeImpl extends ImplHelper {
    public ContractTypeImpl(RMIImpl rmi) {
        super(rmi);
    }

    public synchronized Vector getContractTypes() {
        return this.getVectorValue("SELECT ContractType_Name FROM ContractType ORDER BY ContractType_Name");
    }

    public synchronized Integer getContractTypeID(String str) {
        return this.getIntValue("SELECT ID_ContractType FROM ContractType WHERE ContractType_Name = '" + str + "'");
    }

    public synchronized String getContractTypeName(int id) {
        return this.getStringValue("SELECT ContractType_Name FROM ContractType WHERE ID_ContractType = " + id);
    }
}
